package com.wang.admin.controller;

import com.wang.admin.api.model.AdUserDTO;
import com.wang.admin.service.AdUserService;
import com.wang.common.model.dto.ResponseResult;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 管理平台登录接口
 *
 * @author WN
 * @date：2024/03/05 16:16
 */
@RestController
@RequestMapping
@RequiredArgsConstructor
public class AdUserController {

    private final AdUserService adUserService;

    @PostMapping("login/in")
    public ResponseResult adLogin(@RequestBody AdUserDTO dto){
        return adUserService.login(dto);
    }

}
